﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
  <!--
  schema="schemaName"                                          可选    数据库架构名称               
  default-cascade="none|save-update"               none        可选    默认级联样式
  auto-import="true|false"                         true        可选    在查询语言中，是否使用限定的类名
  assembly="Eg"                                                可选    映射文件中的程序序
  namespace="Eg"                                               可选    映射文件中的命名空间
  default-access="field|property|field.camecase    property    可选    NHibernate访问属性策略
  default-lazy="true|false"                        true        可选    是否启用延迟加载
  -->
  <class name="Inovout.Jobs.Models.JobAction, Inovout.Jobs" table="Jobs_JobAction">
    <!--
    name="ClassName"                              (1)
    table="tableName"                             (2)
    discriminator-value="discriminator_value"     (3)
    mutable="true|false"                          (4)
    schema="owner"                                (5)
    proxy="ProxyInterface"                        (6)
    dynamic-update="true|false"                   (7)
    dynamic-insert="true|false"                   (8)
    select-before-update="true|false"             (9)
    polymorphism="implicit|explicit"              (10)
    where="arbitrary sql where condition"         (11)
    persister="PersisterClass"                    (12)
    batch-size="N"                                (13)
    optimistic-lock="none|version|dirty|all"      (14)
    lazy="true|false"                             (15)
    abstract="true|false"
    -->
    <id name="Id" type="Int32" access="field.camelcase">
      <!--
      name="PropertyName"                      (2)
      type="typename"                          (3)
      column="column_name"                     (4)
      unsaved-value="any|none|null|id_value"   (5)
      access="field|property|nosetter|ClassName">
      <generator class="generatorClass"/>
      -->
      <generator class="native" />
    </id>
    <property name="Name" />
    <!--
    name="propertyName"    (1)
    column="column_name"                (2)
    type="typename"                     (3)
    update="true|false"                 (4)
    insert="true|false"                 (4)
    formula="arbitrary SQL expression"  (5)
    access="field|property|ClassName"   (6)
    optimistic-lock="true|false"        (7)
    generated="never|insert|always"     (8
    )-->
    <property name="CreatedTime"  access="field.camelcase" generated="insert" />
    <property name="CreatedUserName"  access="field.camelcase"/>
    <property name="ModifiedTime"  access="field.camelcase" generated="always" />
    <property name="ModifiedUserName"  access="field.camelcase"/>
    <property name="AccessedTime"  access="field.camelcase" generated="always" />
    <property name="AccessedUserName"  access="field.camelcase"/>
    <property name="Memo" />
    <property name="IsInvalid" />
  </class>
</hibernate-mapping>